package com.jl.jlapp.mvp.base;

import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.widget.Toolbar;
import android.view.View;
import android.view.View.OnClickListener;

import com.jl.jlapp.R;

import butterknife.BindView;
import butterknife.ButterKnife;

public abstract class ToolbarBaseActivity extends BaseActivity {
    @BindView(R.id.toolbarBanner)
    protected Toolbar toolbar;

    protected void initToolbar() {
        this.toolbar.setNavigationIcon(R.drawable.ic_arrow_left);
        this.toolbar.setNavigationOnClickListener(new OnClickListener() {
            public void onClick(View paramAnonymousView) {
                ToolbarBaseActivity.this.onBackPressed();
            }
        });
    }

    protected void onCreate(@Nullable Bundle paramBundle) {
        super.onCreate(paramBundle);
        ButterKnife.bind(this);
        initToolbar();
    }
}


/* Location:              /Users/davidzhang/Documents/decompileApk/jlfood-dex2jar.jar!/com/jl/jlapp/mvp/base/ToolbarBaseActivity.class
 * Java compiler version: 6 (50.0)
 * JD-Core Version:       0.7.1
 */